package com.ftwj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;


import java.util.Date;
import java.util.List;

@Getter
@Setter
public class SysMenu {

    @TableId(type = IdType.ASSIGN_UUID)
    private String  id;

    //菜单名称
    private String  menuName;
    //父菜单ID
    private String  parentId;
    //显示顺序
    private String  seq;
    //路由地址
    private String  path;
    //菜单图标
    private String  icon;
    //备注信息
    private String remark;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //状态(-1删除，1正常)
    private Integer state;
    // 新增字段，用于存放子菜单
    @TableField(exist = false)
    private List<SysMenu> children;
    // 当前页码
    @TableField(exist = false)
    private Integer pageNumber ;
    // 每页大小
    @TableField(exist = false)

    private Integer pageSize ;
}
